home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / tcsh / Source / config / config.aix next >
Encoding:
Text File  |  1994-02-21  |  5.1 KB  |  223 lines

  1. /*
  2.  * config.h -- configure various defines for tcsh
  3.  *
  4.  * All source files should #include this FIRST.
  5.  *
  6.  * Edit this to match your system type.
  7.  */
  8. #ifdef PL8CC
  9. /* for an RT running the IBM Sys. V version of AIX. -- tells the compiler
  10.    reasonable things. MUST BE the fist thing the compiler sees */
  11. \option MAXD(20000,20000) MAXS(50000,50000) MAXL(20000,20000) MAXH(20000,20000);
  12. \option MAXA(20000,20000) MAXP(500) EL_SIZE(20000) ET_SIZE(30000);
  13. \option OPTIONS UNSAFE;
  14. #endif
  15.  
  16. #if defined(_AIX) && defined(_I386) && defined(aiws)
  17. # undef aiws    /* not an rt */
  18. #endif /* _AIX && _386 && aiws */
  19.  
  20. /****************** System dependant compilation flags ****************/
  21. /*
  22.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  23.  */
  24. #if defined(_IBMR2)
  25. #define POSIX
  26. #else
  27. #undef POSIX
  28. #endif
  29.  
  30. /*
  31.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  32.  *        job control facilities.
  33.  */
  34. #ifndef aiws
  35. #define POSIXJOBS
  36. #else
  37. #undef POSIXJOBS
  38. #endif
  39.  
  40. /*
  41.  * POSIXSIGS    Use the POSIX signal facilities to emulate BSD signals.
  42.  */
  43. #undef POSIXSIGS
  44.  
  45. /*
  46.  * VFORK    This machine has a vfork().  
  47.  *        It used to be that for job control to work, this define
  48.  *        was mandatory. This is not the case any more.
  49.  *        If you think you still need it, but you don't have vfork, 
  50.  *        define this anyway and then do #define vfork fork.  
  51.  *        I do this anyway on a Sun because of yellow pages brain damage,
  52.  *        [should not be needed under 4.1]
  53.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  54.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  55.  *        Note that some machines eg. rs6000 have a vfork, but not
  56.  *        with the berkeley semantics, so we cannot use it there either.
  57.  */
  58. #undef VFORK
  59.  
  60. /*
  61.  * BSDJOBS    You have BSD-style job control (both process groups and
  62.  *        a tty that deals correctly
  63.  */
  64. #ifndef aiws
  65. # define BSDJOBS
  66. #else
  67. # undef BSDJOBS
  68. #endif
  69.  
  70. /*
  71.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  72.  *        Note: POSIX systems should not define this unless they
  73.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  74.  */
  75. #define BSDSIGS
  76.  
  77. /*
  78.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  79.  *        This may or may not be true.  For example, Apple Unix
  80.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  81.  */
  82. #ifndef aiws
  83. # define BSDTIMES
  84. #else
  85. # undef BSDTIMES
  86. #endif
  87.  
  88. /*
  89.  * BSDLIMIT    You have BSD-style resource limit stuff (getrlimit/setrlimit)
  90.  */
  91. #ifndef aiws
  92. # define BSDLIMIT
  93. #else
  94. # undef BSDLIMIT
  95. #endif 
  96.  
  97. /*
  98.  * BSDNICE    Your system uses setpriority() instead of nice, to
  99.  *        change a processes scheduling priority
  100.  */
  101. #ifndef aiws
  102. # define BSDNICE
  103. #else
  104. # undef BSDNICE
  105. #endif
  106.  
  107. /*
  108.  * TERMIO    You have struct termio instead of struct sgttyb.
  109.  *         This is usually the case for SYSV systems, where
  110.  *        BSD uses sgttyb. POSIX systems should define this
  111.  *        anyway, even though they use struct termios.
  112.  */
  113. #if defined(_IBMR2) || defined(aiws)
  114. # define TERMIO
  115. #else
  116. # undef TERMIO
  117. #endif /* _IBMR2 || aiws */
  118.  
  119. /*
  120.  * SYSVRELYour machine is SYSV based (HPUX, A/UX)
  121.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  122.  *        built in a BSD universe.
  123.  *        Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
  124.  *        you are running. Or set it to 0 if you are not SYSV based
  125.  */
  126. #ifndef aiws
  127. # define SYSVREL    0
  128. #else
  129. # define SYSVREL    2
  130. #endif /* aiws */
  131.  
  132. /*
  133.  * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  134.  *        to send command output to /dev/null
  135.  */
  136. #undef YPBUGS
  137.  
  138. /*
  139.  * SIGVOID    Define this if your signal handlers return void.  On older
  140.  *        systems, signal returns int, but on newer ones, it returns void.
  141.  */
  142. #if (defined(_AIX) && defined(_I386)) || defined(aiws)
  143. # undef SIGVOID
  144. #else /* _AIX && _I386 */
  145. # define SIGVOID 
  146. #endif /* (_AIX && _I386) || aiws */
  147.  
  148. /*
  149.  * HAVEDUP2    Define this if your system supports dup2().
  150.  */
  151. #define HAVEDUP2
  152.  
  153. /*
  154.  * UTHOST    Does the utmp file have a host field?
  155.  */
  156. #ifndef aiws
  157. # define UTHOST
  158. #else
  159. # undef UTHOST
  160. #endif
  161.  
  162. /*
  163.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  164.  */
  165. #define DIRENT
  166.  
  167. /****************** local defines *********************/
  168. /*
  169.  * IBMAIX    You are running aix on the ps2, rs6000, on ibm370
  170.  */
  171. #define IBMAIX
  172.  
  173. /*
  174.  * TCF        You have the transparent computing facility.
  175.  */
  176. #if !defined(_IBMR2) && !defined(aiws)
  177. # define TCF    /* ps2 and 370 have TCF */
  178. #else
  179. # undef TCF    /* The rs6000 and the rt does not have TCF yet */
  180. #endif
  181.  
  182. #if defined(_AIX) && defined(_I386)
  183. # define _AIXPS2    /* give a more sane name */
  184. #endif /* _AIX && _386 */
  185.  
  186. #if defined(_AIXPS2)
  187. # define _NO_PROTO
  188. # define _BSD
  189. # define _BSD_INCLUDES
  190. #endif /* _AIXPS2 */
  191.  
  192. #if defined(_IBMR2)
  193. # define _POSIX_SOURCE
  194. # define _ALL_SOURCE    /* for window size etc, extra tty chars etc. */
  195. #endif
  196.  
  197. #ifdef NLS
  198. # undef NLS    /* Let us decide in config_f.h... */
  199. #endif /* NLS */
  200.  
  201. /*
  202.  * NOSTRCOLL    We don't have strcoll()
  203.  */
  204. #ifndef _IBMR2
  205. # define NOSTRCOLL    /* only the rs6000 has strcoll() */
  206. #endif
  207.  
  208. /*
  209.  * Function pointer comparisons are broken
  210.  */
  211. #ifdef aiws
  212. #define void int
  213. #endif /* aiws */
  214.  
  215. /****************** configurable hacks ****************/
  216. /* have been moved to config_f.h */
  217.  
  218. #include "config_f.h"
  219.  
  220. #if defined(_AIXPS2) || defined(aiws)
  221. # undef NLS
  222. #endif
  223.